package com.itheima.staticdemo;

/*
1.被类的所有对象所共享
2.可以通过类名.方式调用 //如果是静态  优先考虑 使用类名.方式
3.优先于对象存在, 随着类的加载而加载
 */
public class Demo01 {

    public static void main(String[] args) {
        Student.school = "黑马";
        System.out.println(Student.school);
        Student student = new Student();
        System.out.println(student.school);
        Student student2 = new Student();
        System.out.println(student2.school);
    }
}
